<template>
	<view>
		<button @click="back">返回</button>
			<button @click="home">首页</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			home(){
				uni.switchTab({
					url:'/pages/index/index'
				})
				
			},
			back(){
				//关闭当前页面，返回上一页面或多级页面
				uni.navigateBack({
					delta:3
				})
			}
		}
	}
</script>

<style>

</style>
